﻿using DeviceMaintainGIS.BLL.User;
using DeviceMaintainGIS.Common;
using DeviceMaintainGIS.Model;
using DeviceMaintainGIS.Model.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;

namespace DeviceMaintainGIS.Controllers
{
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserController : ApiController
    {
        /// <summary>
        /// 通过角色ID获取角色下的用户信息
        /// </summary>
        /// <param name="RoleID"></param>
        /// <returns></returns>
        public ReturnListVM<UserModel> Get([FromUri]int RoleID)
        {
            return new UserOperation().GetUserInfoByRoleID(RoleID);
        }
    }
}
